package com.chinacoal.microservice.api.model;

import java.util.Map;

import javax.validation.constraints.NotBlank;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class ForeignTaskParam {
	
	@ApiModelProperty(value = "待办主键Id", required = true)
	@NotBlank(message = "待办中心的待办主键Id不能为空: taskId")
	private String taskId ;
	
	@ApiModelProperty(value = "请求来源终端类型", example = "取值：pc/mobile", required = true)
	@NotBlank(message = "请求来源终端类型不能为空: reqTerminal")
	private String reqTerminal;

	@ApiModelProperty(value = "扩展参数", required = false)
	private Map<String, Object> extParams;	
	
	// 以下为可选参数
	@ApiModelProperty(value = "系统在中台应用中心的注册码", required = false)
	private String sysCode;
	
	@ApiModelProperty(value = "业务系统待办Id", required = false)
	private String sysTaskId;
	
	@ApiModelProperty(value = "业务系统待办关联的业务主键Id", required = false)
	private String businessId;

	@ApiModelProperty(value = "业务系统待办关联的业务编码", required = false)
	private String bizCode;
}
